package com.wing.storage.dao;

import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.baomidou.mybatisplus.extension.plugins.pagination.Page;
import com.wing.storage.model.entity.ProductInventory;
import com.wing.storage.model.entity.ProductInventoryDetail;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;

import java.util.List;
import java.util.Map;

/**
 * 产品库存详情-Dao
 *
 * @author xiayang
 */
@Mapper
public interface ProductInventoryDetailDao extends BaseMapper<ProductInventoryDetail> {

    /**
     * 产品库存详情列表
     *
     * @param page
     * @param params
     * @return
     */
    List<ProductInventoryDetail> list(@Param("page") Page<ProductInventoryDetail> page, @Param("params") Map<String, Object> params);

    List<ProductInventoryDetail> list(@Param("params") Map<String, Object> params);

    /**
     * 产品库存详情
     *
     * @param id 产品库存详情ID
     * @return
     */
    ProductInventoryDetail get(Long id);


    /**
     *  入库作业地方使用
     * @param page
     * @param params
     * @return
     */
    List<ProductInventoryDetail> pageList2(@Param("page") Page<ProductInventoryDetail> page, @Param("params") Map<String, Object> params);



}
